package com.bdqn.tour.listener;


import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

@WebListener
public class LoginListener implements  HttpSessionListener {
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        HttpSession session = se.getSession();
       /* //调用业务层
        GyhQueryALLUserInfoService service  = new GyhQueryALLUserInfoServiceImpl();

        //从数据库中获取数据 查询
        List<User> userList = service.getQueryALLUserInfo();

        //将数据储存到session
       session.setAttribute("userList",userList);*/

    }


}
